package com.fauks.ssm.mybatis.bean;

import com.baomidou.mybatisplus.annotations.KeySequence;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableLogic;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.enums.IdType;

//指定序列
@KeySequence(value = "SEQ_CAT", clazz = Integer.class)
public class Cat {
    @TableId(type = IdType.INPUT)
    private Integer id;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String name;
    //逻辑删除字段
    @TableLogic
    private int del_flag;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getDel_flag() {
        return del_flag;
    }

    public void setDel_flag(int del_flag) {
        this.del_flag = del_flag;
    }
}
